package com.qdlc.p2p.dal.model;

import org.springframework.beans.BeanUtils;

import com.qdlc.p2p.dal.dto.UserAutoTenderLog;

public class UserAutoTenderLogModel extends UserAutoTenderLog {

	/** 投资成功*/
	public static final byte TENDER_SUCCESS = 1;
	/** 投资失败*/
	public static final byte TENDER_FAIL = 2;
	/** 借款标题*/
	private String borrowName;
	/** 用户名*/
	private String userName;
	
	/**
	 * 唯一标识
	 */
	private String uuid;
	
	
	public static UserAutoTenderLogModel instance(UserAutoTenderLog userAutoTenderLog) {
		UserAutoTenderLogModel userAutoTenderLogModel = new UserAutoTenderLogModel();
		BeanUtils.copyProperties(userAutoTenderLog, userAutoTenderLogModel);
		return userAutoTenderLogModel;
	}

	public UserAutoTenderLog prototype() {
		UserAutoTenderLog userAutoTenderLog = new UserAutoTenderLog();
		BeanUtils.copyProperties(this, userAutoTenderLog);
		return userAutoTenderLog;
	}

	public String getBorrowName() {
		return borrowName;
	}

	public void setBorrowName(String borrowName) {
		this.borrowName = borrowName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	
}
